<form class="layui-form" lay-filter="tpl_supplier{$staff_id}" action="{:url('supplier/saveData')}">
	<input type="hidden" name="staff_id" class="layui-input" />
	<input type="hidden" name="site_id" value="117" />
	<input type="hidden" name="department_id" value="-1" />
	<input type="hidden" name="position" value="1" />
	<input type="hidden" name="is_supplier" value="1" />
	<div class="layui-form-item">
		<label class="layui-form-label">登录账号</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="username" lay-verify="required" placeholder="请输入登录账号" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">重置登录密码</label>
		<div class="layui-input-inline">
			<input type="password" name="password" placeholder="请输入密码" autocomplete="off" class="layui-input">
			{if condition="$staff_id NEQ ''"}
			<div class="layui-form-mid layui-word-aux">不填写则不修改密码</div>
			{/if}
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">供应商名称</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="supplier_name" lay-verify="required" placeholder="请输入供应商名称" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">联系人</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="realname" lay-verify="required" placeholder="请输入联系人" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">联系电话</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="phone" lay-verify="required" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">默认折扣率（%）</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" disabled="disabled" type="number" name="supplier_rate" lay-verify="required"  autocomplete="off" class="layui-input" style="border: 0px;">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">微信群名</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="wxgroup_name" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">签约代表</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="daibiao"autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">联系电话</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="dianhua" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">开户银行</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="yinhang" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">银行账号</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="zhanghao" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">税号</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="trade_no" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">单位地址</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="danweidizhi" autocomplete="off" class="layui-input">
		</div>
	</div>
<div class="layui-form-item">
		<label class="layui-form-label">业务员</label>
		<div class="layui-input-inline">
			<input disabled="disabled" style="border: 0px;" type="text" name="yewuyuan" autocomplete="off" class="layui-input">
		</div>
	</div>
		<div class="layui-form-item">
		<label class="layui-form-label">上传公章</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<div class="layui-upload-list" id="layui-upload-list-supplier{$staff_id}">
		
				</div>
				<div class="layui-upload-drag article_pictures_upload" id="supplier_pictures_upload{$staff_id}">
					<i class="layui-icon layui-icon-upload"></i>
					<p>点击或拖拽上传</p>
				</div>
				<div style="clear: both;">
		
				</div>
			</blockquote>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_supplier">确认</button>
		</div>
	</div>
</form>
<script>
	// 赋值
	var supplier_form_value = {$data};
	supplier_form_value.department_id = -1;
	var get_city_department = "{:url('supplier/getCityDepartment')}";
	var get_site_list_url = "{:url('site/ajaxSite')}";
</script>
<script src="/static/js/supplier/supplier_tpl.js" type="text/javascript" charset="utf-8"></script>